package com.association.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author 18244
 */
@TableName("menu")
@Data
public class Menu {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("title")
    private String title;
    @TableField("name")
    private String name;
    @TableField("component")
    private String component;
    @TableField("pid")
    private Integer pid;
    @TableField("sort")
    private Long sort;
    @TableField("icon")
    private String icon;
    @TableField("path")
    private String path;
    @TableField("cache")
    private char cache;
    @TableField("hidden")
    private char hidden;
    @TableField("component_name")
    private String componentName;
    @TableField("create_time")
    private Date createTime;
    @TableField("permission")
    private String permission;
    @TableField("type")
    private int type;
    @TableField("update_time")
    private Date updateTime;
    @TableField("is_del")
    private int isDel;

    @TableField(exist = false)
    private List<Menu> children;
}
